package metalink.admin;

import java.util.ArrayList;

import vo.mixed.CourseListVo;

import model.admin.GetBatchListMo;

import com.opensymphony.xwork2.ActionSupport;

public class GetBatchDepartmentList extends ActionSupport {
int batch_id;
int department_id;
	public int getBatch_id() {
	return batch_id;
}

public void setBatch_id(int batch_id) {
	this.batch_id = batch_id;
}

public int getDepartment_id() {
	return department_id;
}

public void setDepartment_id(int department_id) {
	this.department_id = department_id;
}

public ArrayList<CourseListVo> getCourse_list() {
	return course_list;
}

public void setCourse_list(ArrayList<CourseListVo> course_list) {
	this.course_list = course_list;
}

	ArrayList<CourseListVo> course_list;

	public String execute(){
		GetBatchListMo course_obj = new GetBatchListMo();
		try {
			setCourse_list(course_obj.getBatchCourseList(batch_id, department_id,0));
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return SUCCESS;
	}
}
